//
//  ShakeItOffController.m
//  ZLMediaPlayer
//
//  Created by zhangliang on 2017/4/24.
//  Copyright © 2017年 zhangliang. All rights reserved.
//

#import "ShakeItOffController.h"
#import <AudioToolbox/AudioToolbox.h>
#import <AudioToolbox/AudioSession.h>

@interface ShakeItOffController ()

@property (nonatomic, strong) UILabel *textLabel;

@end

@implementation ShakeItOffController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    CGRect frame = self.view.frame;
    _textLabel = [[UILabel alloc] initWithFrame:CGRectMake((frame.size.width - 100)/2, (frame.size.height - 30)/2, 100, 30)];
    _textLabel.text = @"摇一摇";
    [self.view addSubview:_textLabel];
    
    [[UIApplication sharedApplication] setApplicationSupportsShakeToEdit:YES];
    [self becomeFirstResponder];
    
}

- (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:animated];
    [self resignFirstResponder];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
